﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;

namespace Yto.Modules
{
    public class ModuleItemInfo
    {
        public Type ModuleType { get; }

        public BaseModule Instance { get; }

        public List<ModuleItemInfo> Dependencies { get; }

        public ModuleItemInfo(Type moduleType,BaseModule baseModule)
        {
            ModuleType = moduleType;
            Instance = baseModule;

            Dependencies = new List<ModuleItemInfo>();

            Assembly = moduleType.GetTypeInfo().Assembly;
        }

        public Assembly Assembly { get; }
    }
}
